<template>
    <div>
      <!-- <div v-if="IsIncludeAdmin(role)" style="color:#00cc00;font-weight: bold;">
        {{role}}
      </div> v-else -->
      <div>
        {{role}}
      </div>
    </div>
</template>

<script>

export default {
  data () {
    return {
    }
  },
  computed: {
    role () {
      let tempList = this.$data.data.roleNameList
      // let e = []
      // for (let j = 0; j < tempList.length; j++) {
      //   e.push(tempList[j].name)
      // }
      // // tempList = '<a>' + e.join(', ') + '</a>'
      // tempList = e.join(', ')
      return tempList
    }
  },
  methods: {
    IsIncludeAdmin (role) {
      if ((role.toLowerCase()).indexOf('admin') !== -1) {
        return true
      }
      return false
    }
  }
}
</script>
